import request from '@/utils/request';
import {queryType} from "./data.d";

export async function queryContractList(params:queryType) {
  return request('/hk/admin/order/contract/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
      'token':`${localStorage.getItem('token')}`
    },
    data:params
  });
}

export async function queryUsdtContract() {
  return request('/hk/admin/billDetails/usdtContract', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
      'token':`${localStorage.getItem('token')}`
    },
  });
}

export async function uploadWallet() {
  return request('/hk/admin/billDetails/wallet', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
      'token':`${localStorage.getItem('token')}`
    },
  });
}
